﻿<%@ Page Language="C#" Inherits="E.Web.Teacher.sys.notice.View" %>
<%@ Import Namespace="E.Model" %>
<%@ Import Namespace="X.Common" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
  <title>通告信息</title>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />  
  <link rel="stylesheet" href="/css/main.css" type="text/css" media="all" />
  <link rel="stylesheet" href="/css/t_main.css" type="text/css" media="all" />
  <link rel="stylesheet" href="/css/sys.css" type="text/css" media="all" />
  <link rel="stylesheet" href="/css/exam.css" type="text/css" media="all" />
  <script type="text/javascript" src="/js/exam.js"></script>
  <script type="text/javascript" src="/js/jquery-1.4.2.min.js"></script>
  <script type="text/javascript">
    window.onload = function() {
      document.getElementById("form1").style.display = "";
    }
  </script>
</head>
<body>
  <form id="form1" action="" method="post" style="display:none;">
    <div class="m_top"></div>
    <div class="block_2">
      <div style="width:650px; height:22px;">
        <div class="title">&nbsp;公告信息</div>
      </div>
      <div class="spe_line_2"></div>
      <div class="box_1">
        <div class="fl tr left">标题：</div>
        <div class="fl dis_r"><%=model.Title %></div>
      </div> 
      <div class="box_1">
        <div class="fl tr left">类别：</div>
        <div class="fl dis_r"><%=model.CategoryName %></div>
      </div> 
      <div class="box_1">
        <div class="fl tr left">发布人：</div>
        <div class="fl dis_r"><%=model.PublisherName %></div>
      </div> 
      <div class="box_1">
        <div class="fl tr left">发布时间：</div>
        <div class="fl dis_r"><%=model.AddDate %></div>
      </div>
      <div class="box_1">
        <div class="fl tr left">是否为系统公告：</div>
        <div class="fl dis_r"><%=model.IsSys ? "是" : "否" %></div>
      </div>
      <div class="box_1">
        <div class="fl tr left">内容：</div>
        <div class="fl dis_r"><%=Utils.StrFormat(model.Content)%></div>
      </div>
      
      <div class="box_1">
        <div class="fl tr left">地区：</div>
        <div class="fl">
          <ul>
          <% if (areaList != null && areaList.Count > 0) { %>
            <% int i = 0; %>
            <% foreach(DictAreaModel areaModel in areaList) { %>
            <li><input type="checkbox" id="AreaChb_<%=i %>" name="AreaChb" class="fl c_chb" value="<%=areaModel.ID%>" disabled="disabled" /><div class="fl left_2">&nbsp;<%=areaModel.Name%></div></li>
            <% i++; %>
            <% } %>
          <% } %>
          </ul>
        </div>
      </div>
    </div>
    <div class="block">
      <div style="width:350px; margin-top:20px; text-align:center;">
      <% if (authority == E.Enum.EnumTeacherAuthority.Admin || teacherid == model.PublisherID) { %>
        <a href="/sys/notice/Edit.aspx?act=u&id=<%=id %>"><img alt="" src="/images/btn/edit.gif" /></a>&nbsp;&nbsp;
      <% } %>
        <a href="/sys/notice/List.aspx"><img alt="" src="/images/btn/back.gif" /></a>
      </div>
    </div>
    <input type="hidden" id="area_v" name="area_v" value="<%=area_v %>" />
    <script type="text/javascript">
      InitAreaData();
    </script>
  </form>
</body>
</html>
